//
//  NovelModel.m
//  数据库
//
//  Created by 0.0 on 15-3-31.
//  Copyright (c) 2015年 dlou. All rights reserved.
//

#import "DownLoadModel.h"

@implementation DownLoadModel

- (void)dealloc
{
    [_videoURLPath release];
    [_videoName release];
    [_videoImageURL release];
    [_vegetableName release];
    
    [super dealloc];
}

- (instancetype)init
{
    self = [self initWithVideoName:nil videoPath:nil videoImage:nil vegetable:nil stateNum:0.0];
    
    return self;
}

- (instancetype)initWithVideoName:(NSString *)videoName videoPath:(NSString *)videoPath videoImage:(NSString *)videoImage vegetable:(NSString *)vegetabelName stateNum:(CGFloat)num
{
    self = [super init];
    
    if (self) {
        self.videoName = videoName;
        self.videoURLPath = videoPath;
        self.videoImageURL = videoImage;
        self.vegetableName = vegetabelName;
        self.videoDownNum = num;
    }
    
    return self;
}

+ (DownLoadModel *)downLoadWithVideoName:(NSString *)videoName videoPath:(NSString *)videoPath videoImage:(NSString *)videoImage vegetable:(NSString *)vegetabelName stateNum:(CGFloat)num
{
    DownLoadModel *model = [[DownLoadModel alloc] initWithVideoName:videoName videoPath:videoPath videoImage:videoImage vegetable:vegetabelName stateNum:num];
    
    return [model autorelease];
}



@end
